
package JET.recorder;

import JET.geom.Vec2d;
import JET.physics.Mass;

/**
 *
 * @author 057Ry
 */
public class MassRec
{
    double mass;
    Vec2d p;
    Vec2d v;
    Vec2d f;

    public MassRec()
    {
        mass = 1.;
        p = new Vec2d();
        v = new Vec2d();
        f = new Vec2d();
    }

    public MassRec setData(Mass m)
    {
        mass = m.getMass();
        p = new Vec2d(m.getPosition());
        v = new Vec2d(m.getVelocity());
        f = new Vec2d(m.getForce());

        return this;
    }

}
